package com.nbut.filesystem;

import java.io.Serializable;
import java.util.HashMap;
import java.util.LinkedList;

/**
 * 用户实体类
 * 用于保存用户信息和用户文件表
 */
public class User implements Serializable {
    //序列化id，实现序列化功能
    private static final long serialVersionUID = 1L;
    private String username;
    private String password;
    //用户文件表
    private UserFileList userFileList;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
        userFileList = new UserFileList(new LinkedList<>(),new HashMap<>());
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public UserFileList getUserFileList() {
        return userFileList;
    }

}
